package com.mux.springboot.student;

import java.util.List;
import java.util.Map;
import java.util.Random;

import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.dao.DataAccessException;
//import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;

//@Service
public class StudentService {
	
	
	public  StudentService() {
		System.out.println("init studentService");
	}
/*	@Autowired
	JdbcTemplate jdbcTemplate;
	
	
	public List<Map<String,Object>>	queryForStudentMapAll() {
		return jdbcTemplate.queryForList("select * from student");
	}
	
	public boolean addStudent(){
		String sql = "insert into student (id,name) values (?,?)";
		try {
			jdbcTemplate.update(sql,new Object[]{3,"ccx"+Math.random()*100});
		} catch (DataAccessException e) {
			e.printStackTrace();
			return false;
		}
		
		return true;
	}*/
}
